package com.sailing.xjpb.ipaas.client.entity.bo;


import com.sailing.xjpb.common.tree.annotation.Tree;
import com.sailing.xjpb.common.tree.annotation.TreeField;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 *
 */
@Tree(id = "orgId", pid = "parentId", label = "orgName")
@Data
public class SipOrganizationBO implements Serializable {


    /**
     *
     */
    private static final long serialVersionUID = 1L;
    /**
     * ORG_ID
     */
    private String orgId;
    /**
     * PARENT_ID
     */
    private String parentId;

    private List<SipOrganizationBO> children;
    /**
     * ORG_NAME
     */
    private String orgName;
    /**
     * ORG_TYPE
     */
    private String orgType;
    /**
     * ORG_CODE
     */
    private String orgCode;
    /**
     * ORG_LEVEL
     */
    private Integer orgLevel;
    /**
     * SYS_ORG_CODE
     */
    private String sysOrgCode;
    /**
     * STATUS
     */
    private String status;
    /**
     * DESCRIPTION
     */
    private String description;
    /**
     * ORG_SEQUENCE
     */
    private Integer orgSequence;
    /**
     * SHORT_NAME
     */
    private String shortName;
    /**
     * SPELL_CODE
     */
    private String spellCode;
    /**
     * ORG_LEADER
     */
    private String orgLeader;
    /**
     * OPERATE_TIME
     */
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
    private Date operateTime;
    /**
     * LEAF
     */
    private String leaf;
    /**
     * ORG_PROPERTY
     */
    private String orgProperty;
    /**
     * EXT1 组织分类
     */
    @TreeField
    private String ext1;
    /**
     * EXT2
     */
    @TreeField
    private String ext2;
    /**
     * EXT3 结构类型
     */
    @TreeField
    private String ext3;
    /**
     * EXT4 经度
     */
    private String ext4;
    /**
     * EXT5 纬度
     */
    private String ext5;
    /**
     * EXT6
     */
    private String ext6;
    /**
     * EXT7
     */
    private String ext7;
    /**
     * EXT8
     */
    private String ext8;
    /**
     * EXT9
     */
    private String ext9;
    /**
     * EXT10 机构层级
     */
    private String ext10;

}
